/*
 * Copyright (c) 2006, 2022, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * <p>Project: jse2204 - Exception4
 * <p>Powered by webrx On 2022-09-16 14:26:40
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class Exception4 {
    public static void main(String[] args) throws NullPointerException{
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
        String ts = "1988/05/18";
        Date d = null;
        try {
            d = sdf.parse(ts);
        } catch (ParseException e) {
            //throw new RuntimeException(e);
        }
        System.out.printf("%tF %<tT %n", d);
    }
}
